/*
 * @Description: 
 * @Version: 2.0
 * @Author: 
 * @Date: 2022-04-01 14:47:36
 * @LastEditors: cxc
 * @LastEditTime: 2022-04-01 15:13:32
 */
import React from 'react'
import { Row, Col, Modal, Button } from 'antd';

export default function CantDelete(props) {
  const { title, visible, icon, content, onCancel } = props
  return (
    <>
      {/* 对话框 */}
      {/* 新增部门 */}
      <Modal className='dep_add_modal'
        destroyOnClose='true'
        centered='true'
        footer={[<Button key='cancel' onClick={onCancel}>关闭</Button>]}
        title={title}
        visible={visible}>
        <Row >
          <Col span={4} >
            <div className='delete_wrap'>
              <span className='modal_con_del_icon'> {icon}</span>
            </div>
          </Col>
          <Col span={20} className='cant_delete_message'>{content} </Col>
        </Row>
      </Modal>
    </>
  )
}
